Integrand size = 35, antiderivative size = 215 \[ \int \frac {\sqrt {\cot (c+d x)} (A+B \tan (c+d x))}{(a+b \tan (c+d x))^{3/2}} \, dx=\frac {(i A-B) \arctan \left (\frac {\sqrt {i a-b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{(i a-b)^{3/2} d}+\frac {(i A+B) \text {arctanh}\left (\frac {\sqrt {i a+b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{(i a+b)^{3/2} d}+\frac {2 b (A b-a B)}{a \left (a^2+b^2\right ) d \sqrt {\cot (c+d x)} \sqrt {a+b \tan (c+d x)}} \]
[Out]
Time = 0.80 (sec) , antiderivative size = 215, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {4326, 3690, 3697, 3696, 95, 209, 212} \[ \int \frac {\sqrt {\cot (c+d x)} (A+B \tan (c+d x))}{(a+b \tan (c+d x))^{3/2}} \, dx=\frac {2 b (A b-a B)}{a d \left (a^2+b^2\right ) \sqrt {\cot (c+d x)} \sqrt {a+b \tan (c+d x)}}+\frac {(-B+i A) \sqrt {\tan (c+d x)} \sqrt {\cot (c+d x)} \arctan \left (\frac {\sqrt {-b+i a} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{d (-b+i a)^{3/2}}+\frac {(B+i A) \sqrt {\tan (c+d x)} \sqrt {\cot (c+d x)} \text {arctanh}\left (\frac {\sqrt {b+i a} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{d (b+i a)^{3/2}} \]
[In]
[Out]
Rule 95
Rule 209
Rule 212
Rule 3690
Rule 3696
Rule 3697
Rule 4326
Rubi steps \begin{align*} \text {integral}& = \left (\sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {A+B \tan (c+d x)}{\sqrt {\tan (c+d x)} (a+b \tan (c+d x))^{3/2}} \, dx \\ & = \frac {2 b (A b-a B)}{a \left (a^2+b^2\right ) d \sqrt {\cot (c+d x)} \sqrt {a+b \tan (c+d x)}}+\frac {\left (2 \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {\frac {1}{2} a (a A+b B)-\frac {1}{2} a (A b-a B) \tan (c+d x)}{\sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}} \, dx}{a \left (a^2+b^2\right )} \\ & = \frac {2 b (A b-a B)}{a \left (a^2+b^2\right ) d \sqrt {\cot (c+d x)} \sqrt {a+b \tan (c+d x)}}+\frac {\left ((a+i b) (A-i B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {1+i \tan (c+d x)}{\sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}} \, dx}{2 \left (a^2+b^2\right )}+\frac {\left ((a-i b) (A+i B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {1-i \tan (c+d x)}{\sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}} \, dx}{2 \left (a^2+b^2\right )} \\ & = \frac {2 b (A b-a B)}{a \left (a^2+b^2\right ) d \sqrt {\cot (c+d x)} \sqrt {a+b \tan (c+d x)}}+\frac {\left ((a+i b) (A-i B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{(1-i x) \sqrt {x} \sqrt {a+b x}} \, dx,x,\tan (c+d x)\right )}{2 \left (a^2+b^2\right ) d}+\frac {\left ((a-i b) (A+i B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{(1+i x) \sqrt {x} \sqrt {a+b x}} \, dx,x,\tan (c+d x)\right )}{2 \left (a^2+b^2\right ) d} \\ & = \frac {2 b (A b-a B)}{a \left (a^2+b^2\right ) d \sqrt {\cot (c+d x)} \sqrt {a+b \tan (c+d x)}}+\frac {\left ((a+i b) (A-i B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{1-(i a+b) x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{\left (a^2+b^2\right ) d}+\frac {\left ((a-i b) (A+i B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{1-(-i a+b) x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{\left (a^2+b^2\right ) d} \\ & = \frac {(i A-B) \arctan \left (\frac {\sqrt {i a-b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{(i a-b)^{3/2} d}+\frac {(i A+B) \text {arctanh}\left (\frac {\sqrt {i a+b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{(i a+b)^{3/2} d}+\frac {2 b (A b-a B)}{a \left (a^2+b^2\right ) d \sqrt {\cot (c+d x)} \sqrt {a+b \tan (c+d x)}} \\ \end{align*}
Time = 1.30 (sec) , antiderivative size = 222, normalized size of antiderivative = 1.03 \[ \int \frac {\sqrt {\cot (c+d x)} (A+B \tan (c+d x))}{(a+b \tan (c+d x))^{3/2}} \, dx=\frac {\sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)} \left (\frac {\sqrt [4]{-1} (-i a+b) (A-i B) \arctan \left (\frac {\sqrt [4]{-1} \sqrt {-a+i b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{\sqrt {-a+i b}}+\frac {\sqrt [4]{-1} (a-i b) (-i A+B) \arctan \left (\frac {\sqrt [4]{-1} \sqrt {a+i b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{\sqrt {a+i b}}+\frac {2 b (A b-a B) \sqrt {\tan (c+d x)}}{a \sqrt {a+b \tan (c+d x)}}\right )}{\left (a^2+b^2\right ) d} \]
[In]
[Out]
result has leaf size over 500,000. Avoiding possible recursion issues.
Time = 1.96 (sec) , antiderivative size = 1561166, normalized size of antiderivative = 7261.24
\[\text {output too large to display}\]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 18703 vs. \(2 (175) = 350\).
Time = 7.11 (sec) , antiderivative size = 18703, normalized size of antiderivative = 86.99 \[ \int \frac {\sqrt {\cot (c+d x)} (A+B \tan (c+d x))}{(a+b \tan (c+d x))^{3/2}} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {\sqrt {\cot (c+d x)} (A+B \tan (c+d x))}{(a+b \tan (c+d x))^{3/2}} \, dx=\int \frac {\left (A + B \tan {\left (c + d x \right )}\right ) \sqrt {\cot {\left (c + d x \right )}}}{\left (a + b \tan {\left (c + d x \right )}\right )^{\frac {3}{2}}}\, dx \]
[In]
[Out]
\[ \int \frac {\sqrt {\cot (c+d x)} (A+B \tan (c+d x))}{(a+b \tan (c+d x))^{3/2}} \, dx=\int { \frac {{\left (B \tan \left (d x + c\right ) + A\right )} \sqrt {\cot \left (d x + c\right )}}{{\left (b \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Exception generated. \[ \int \frac {\sqrt {\cot (c+d x)} (A+B \tan (c+d x))}{(a+b \tan (c+d x))^{3/2}} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {\cot (c+d x)} (A+B \tan (c+d x))}{(a+b \tan (c+d x))^{3/2}} \, dx=\int \frac {\sqrt {\mathrm {cot}\left (c+d\,x\right )}\,\left (A+B\,\mathrm {tan}\left (c+d\,x\right )\right )}{{\left (a+b\,\mathrm {tan}\left (c+d\,x\right )\right )}^{3/2}} \,d x \]
[In]
[Out]